package com.cq.hd.member.api.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class InviteBusinessUrlPageVo implements Serializable {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "链接名称")
    private String inviteName;

    @ApiModelProperty(value = "邀请码")
    private String inviteCode;

    @ApiModelProperty(value = "试用期")
    private Integer trialDay;

    @ApiModelProperty(value = "活动发布次数")
    private Integer activeCount;

    @ApiModelProperty(value = "经纪人数")
    private Integer userCount;

    @ApiModelProperty(value = "状态：1-生效中，2-已失效")
    private Integer state;

    @ApiModelProperty(value = "链接有效期(0表示永久有效)")
    private Integer urlValidDay;

    @ApiModelProperty(value = "失效时间(创建时间+链接有效期)")
    @JSONField(format="yyyy.MM.dd HH:mm:ss")
    private LocalDateTime expireTime;

    @ApiModelProperty(value = "成功入驻数")
    private Integer settleSuccessCount;

    @ApiModelProperty(value = "小程序码图片地址")
    private String miniImgUrl;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    @JSONField(format="yyyy.MM.dd HH:mm:ss")
    private LocalDateTime createTime;
}
